<%@ page import="java.nio.charset.StandardCharsets" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>注册确认</title>
    <link rel="stylesheet" href="css/reg.css">
</head>
<body>
    <div class = "box">
        <div class="box_info">
            <h2>您的注册信息如下：</h2>
            <p><strong>用户名:</strong> <%= request.getParameter("username") %></p>
            <p><strong>密码:</strong> ${ param.password }</p>
            <p><strong>姓名:</strong> ${ param.truename }</p>
            <p><strong>性别:</strong> ${ param.gender eq 'male'? '男' : '女' }</p>
            <p><strong>电话:</strong> ${ param.phone }</p>
            <p><strong>邮箱:</strong> ${ param.email }</p>
            <%
                String cardParam = request.getParameter("card");
                if (cardParam != null) {
                    cardParam = new String(cardParam.getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8);
                }
            %>
            <p><strong>证件类型:</strong> <%= cardParam %></p>
            <p><strong>证件号码:</strong> ${ param.cardNo }</p>
        </div>
        <div class="btn-box">
            <div>
                <button> <a href="login.jsp">确认</a> </button>
                <button> <a href="javascript:void(0)" onclick="window.history.go(-1);">返回</a> </button>
            </div>
        </div>
    </div>
</body>
</html>